package cn.lynu.study.practice10_18;

public class PC {
	CPU cpu = new CPU();
	HardDisk hd = new HardDisk();

	void setCPU(CPU cpu) {
		this.cpu = cpu;
	}

	void setHardDisk(HardDisk hd) {
		this.hd = hd;
	}

	void show() {
		System.out.println("CPU" + this.cpu.getSpeed() + "MHz");
		System.out.println("HD" + this.hd.getAmount() + "GB");
	}
}
